
<!-- =============================================== -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="header-icon">
            <i class="pe-7s-world"></i>
        </div>
        <div class="header-title">
            <h1><?php echo display('user_list');?></h1>
            <small><?php echo display('user_list');?></small>
           
        </div>
    </section>

    <!-- Main content -->
    <section class="content">
    <?php 
        echo @$msg = $this->session->flashdata('message'); 
    ?>
    <div class="row">
        <!--  table area -->
        <div class="col-sm-12">
            <div  class="panel panel-bd">
                
                <div class="panel-heading">
                    <div class="panel-title" >
                        <h4><?php echo display('user_list')?> </h4>
                    </div>
                </div>

                <div class="panel-body">

                    <div class="table-responsive">
                    <table width="100%" class="table table-striped table-bordered table-hover" id="patient_list">
                        <thead>
                            <tr>
                                <th><?php echo display('picture');?></th>
                                <th><?php echo display('name');?></th>
                                <th><?php echo display('phone_number');?></th>
                                <th><?php echo display('email');?></th>
                                <th><?php echo display('blood_group');?></th>
                                <th ><?php echo display('address');?></th>
                                <th><?php echo display('birth_date');?></th>
                                <th><?php echo display('sex');?></th>
                                <th><?php echo display('action');?></th> 
                            </tr>
                        </thead>
                        <tbody>
                           <?php
                                foreach ($user_list as $value) {
                            ?>
                            <tr class="odd gradeX">
                                <td>
                                    <div class="profile-userpic">
                                            <?php 
                                               if($value->picture){
                                                echo '<img width=50" src="'.html_escape($value->picture).'" class="img-responsive">';
                                               }else{
                                                echo '<img width=50" src="'.base_url().'assets/images/user.png">';
                                               }
                                            ?>
                                    </div>
                                </td>
                                <td><?php echo html_escape($value->full_name);?></td>
                                <td><?php echo html_escape($value->user_phone);?></td>
                                <td><?php echo html_escape($value->user_email);?></td>
                                <td><?php echo html_escape($value->blood_group);?></td>
                                <td><?php echo html_escape($value->address);?></td>
                                <td><?php echo html_escape($value->birth_date);?></td>
                                <td><?php echo html_escape($value->sex);?></td>
                                <td class="">
                                    <a  class="btn btn-xs btn-success" href="<?php echo base_url();?>admin/Users_controller/update_profile/<?php echo html_escape($value->log_id) ;?>" ><i class="fa fa-edit"></i> </a>
                                    <a  class="btn btn-xs btn-danger" href="<?php echo base_url();?>admin/Users_controller/delete_user/<?php echo html_escape($value->log_id) ;?>"  onclick="return confirm('<?php echo display('delete_alert')?>')"><i class="fa fa-trash"></i> </a>
                                </td> 
                            </tr>
                            <?php
                                }
                            ?>
                        </tbody>
                    </table> 
                </div>
                </div>
            </div>
        </div>
    </div>            
    </section>
</div>


<?php
    $printTitle = "Patient List";
    $this->session->set_flashdata(array('pTitle' => $printTitle));    
?>  



